package com.sptpc.learnspring.repository;

import com.sptpc.learnspring.model.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;

public interface OrderRepository extends JpaRepository<Order, Long> {
    Page<Order> findOrdersByCreateTimeBetweenOrState(
            LocalDate start, LocalDate end, Integer state, Pageable pageable);
}
